﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DataImporter.Models
{
    /// <summary>
    /// 客户表
    /// </summary>
    public partial class Customers
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { set; get; }

        /// <summary>
        /// Desc:姓名
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = true)]
        public virtual string Name { get; set; }

        /// <summary>
        /// Desc:电话
        /// Default:
        /// Nullable:False
        /// </summary>         
        [SugarColumn(Length = 20)]
        public virtual string Phone { get; set; }

        /// <summary>
        /// Desc:身份证号
        /// Default:
        /// Nullable:False
        /// </summary>        
        [SugarColumn(Length = 20, IsNullable = true)]
        public virtual string IdentityNumber { get; set; }

        /// <summary>
        /// Desc:性别
        /// Default:
        /// Nullable:False
        /// </summary> 
        [SugarColumn(Length = 5, IsNullable = true)]
        public virtual string Gender { get; set; }

        /// <summary>
        /// Desc:生日
        /// Default:
        /// Nullable:False
        /// </summary>          
        [SugarColumn(IsNullable = true)]
        public virtual DateTime? BirthDay { get; set; }

        /// <summary>
        /// Desc:账号
        /// Default:
        /// Nullable:False
        /// </summary>   
        [SugarColumn(Length = 20, IsNullable = true)]
        public virtual string UserName { get; set; }

        /// <summary>
        /// Desc:密码
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(Length = 50)]
        public virtual string Password { get; set; }

        /// <summary>
        /// Desc:绑定微信号
        /// Default:
        /// Nullable:False
        /// </summary>     
        [SugarColumn(Length = 50, IsNullable = true)]
        public virtual string WXId { get; set; }

        public int OId { set; get; }
    }
}
